package com.zhiche.lisa.lspm.dao.model.lsp;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 承运商证照附件
 * </p>
 *
 * @author qichao
 * @since 2018-08-07
 */
@TableName("lisa_lsp_license_attach")
public class LspLicenseAttach extends Model<LspLicenseAttach> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("license_id")
	private Long licenseId;
    /**
     * 承运商id
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 附件key
     */
	@TableField("attach_key")
	private String attachKey;
    /**
     * 附件类型：01-正面；02-反面
     */
	@TableField("attach_type")
	private String attachType;
    /**
     * 附件文件名称
     */
	@TableField("attach_name")
	private String attachName;
    /**
     * 创建人
     */
	private String creator;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLicenseId() {
		return licenseId;
	}

	public void setLicenseId(Long licenseId) {
		this.licenseId = licenseId;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public String getAttachKey() {
		return attachKey;
	}

	public void setAttachKey(String attachKey) {
		this.attachKey = attachKey;
	}

	public String getAttachType() {
		return attachType;
	}

	public void setAttachType(String attachType) {
		this.attachType = attachType;
	}

	public String getAttachName() {
		return attachName;
	}

	public void setAttachName(String attachName) {
		this.attachName = attachName;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LspLicenseAttach{" +
			", id=" + id +
			", licenseId=" + licenseId +
			", lspId=" + lspId +
			", attachKey=" + attachKey +
			", attachType=" + attachType +
			", attachName=" + attachName +
			", creator=" + creator +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
